<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
    </head>
    <body>
    <div>
        Hi all-please below account list in <span th:text="${headerInfo}"></span>
        <br>
    </div>
    <div th:each="users:${tableInfo}">
        <table>
            <caption style="text-align:left">
                <h3 th:text="${users.part}"></h3>
            </caption>
            <tr>
                <th>ID</th>
                <th>Name</th>
                <th>SID</th>
                <th>Address</th>
            </tr>
            <tr th:each="user:${users.list}">
                <td th:text="${user.id}"></td>
                <td th:text="${user.name}"></td>
                <td th:text="${user.sid}"></td>
                <td th:text="${user.address}"></td>
            </tr>
        </table>
    </div>
    <div th:each="users:${unOnboarded}">
        <h3>Accounts not onboarded to Kingstar GateWay</h3>
        <table>
            <tr>
                <th>ID</th>
                <th>Name</th>
            </tr>
            <tr th:each="user:${users.list}">
                <td th:text="${user.id}"></td>
                <td th:text="${user.name}"></td>
            </tr>
        </table>
    </div>

    <div>
        <br><br>
        Regards,<br>
        Aries
    </div>
    </body>
    <style>
        table{
            border-collapse:collapse;
            border-spacing:0;
            border-left:1px solid #888;
            border-top:1px solid #888;
        }

        th,td{
            border-right:1px solid #888;
            border-bottom:1px solid #888;
            padding:5px 15px;
        }

        th{
            font-weight:bold;
        }
    </style>
</html>